package com.zhu.esyblog.service;


import com.zhu.esyblog.pojo.RespBean;
import com.zhu.esyblog.pojo.SysUser;
import com.zhu.esyblog.vo.LoginParams;

public interface LoginService  {
    /**
     * 登录
     * @param loginParams
     * @return
     */
    RespBean login(LoginParams loginParams);

    /**
     * 检验token
     * @param token
     * @return
     */
    SysUser checkToken(String token);

    /**
     * 注销
     * @param token
     * @return
     */
    RespBean logout(String token);

    /**
     * 用户注册
     * @param loginParams
     * @return
     */
    RespBean register(LoginParams loginParams);
}
